package com.bsoft.gol.hcs.enumcase;

public enum FeeTypeEnum {
    XIYAO("1","西药方"),
    CHENGYAO("2","中药方"),
    CAOYAO("3","草药方"),
    JIANYAN("4","检验"),
    JIANCHA("5","检查"),
    SHOUSHU("6","手术"),
    ZHILIAO("7","治疗"),
    HULI("8","护理"),
    YINSHI("9","饮食"),
    CAILIAO("10","卫材"),
    MIANYIYIZHI("11","免疫抑制剂"),
    JISU("12","激素"),
    FANGSHE("13","放疗"),
    MURU("14","母乳"),
    QITA("99","其他"),
    DJF("100","代煎费"),
    KDF("101","快递费");

    FeeTypeEnum(String title, String context) {
        this.title = title;
        this.context = context;
    }

    private String title;
    private String context;

    public static final FeeTypeEnum getDescription(String code){
        for (FeeTypeEnum type : FeeTypeEnum.values()){
            if (type.getTitle().trim().equals(code.trim())){
                return type;
            }
        }
        return null;
    }

    public String getTitle() {
        return title;
    }

    public String getContext() {
        return context;
    }
}
